#include "times.h"
#include <QDebug>  
//#include <sys/ti>
#include <sys/utime.h> 
#include <QTime>

Times::Times(QObject *parent)
	: QObject(parent)
{

}

Times::~Times()
{

}

void Times::outCurrentTime(QString s)
{
	QTime time = QTime::currentTime();

	//struct timeval tpstart,tpend;  
	//double timeuse;  

	//gettimeofday(&tpstart,NULL);  
	////function();  
	////gettimeofday(&tpend,NULL);  
	//timeuse=(1000000*(tpend.tv_sec-tpstart.tv_sec) + tpend.tv_usec-tpstart.tv_usec)/1000000.0;  

	qDebug()<<"current time - " << s << ":" << time.second() << "." << time.msec();  
}